package com.shuzijun.blog.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class JacksonPerson {
    private String name;
    @JsonProperty("age")
    private Integer agexx;
    @JsonIgnore
    private String other;
    private List<JacksonCard> cards;

    public JacksonPerson() {
    }

    public JacksonPerson(String name, Integer agexx, String other, List<JacksonCard> cards) {
        this.name = name;
        this.agexx = agexx;
        this.other = other;
        this.cards = cards;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAgexx() {
        return agexx;
    }

    public void setAgexx(Integer agexx) {
        this.agexx = agexx;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public List<JacksonCard> getCards() {
        return cards;
    }

    public void setCards(List<JacksonCard> cards) {
        this.cards = cards;
    }

    @Override
    public String toString() {
        return "JacksonPerson{" +
                "name='" + name + '\'' +
                ", agexx=" + agexx +
                ", other='" + other + '\'' +
                ", cards=" + cards +
                '}';
    }
}
